/**  
 * All rights Reserved, Designed By www.flksh.com
 * @date:   2017-11-04 14:54:28   
 * @Copyright: 2013-2017 www.flksh.com Inc. All rights reserved. 
 * 注意：本内容仅限于上海福乐康社区养老服务有限公司内部传阅，禁止外泄以及用于其他的商业目
 */
package com.zx.cloud.domain;

import java.time.OffsetDateTime;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.zx.cloud.model.BasicDomain;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zx.cloud.util.converter.jackson.OffsetDateTimeToIso8601Serializer;

import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 
 * sys_log-系统日志
 *
 */
@ToString
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler",
		"fieldHandler" }, ignoreUnknown = true)
public class Log extends BasicDomain {

	private static final long serialVersionUID = 1L;

	/**
	 * 操作人id
	 */
	@ApiModelProperty(value = "操作人id")
	private Long userId;
	/**
	 * 0-操作成功 1-操作失败
	 */
	@ApiModelProperty(value = "0-操作成功   1-操作失败")
	private Integer state;
	/**
	 * 操作内容
	 */
	@ApiModelProperty(value = "操作内容")
	private String content;
	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")
	@JsonSerialize(using = OffsetDateTimeToIso8601Serializer.class)
	private OffsetDateTime createtime;
	/**
	 * 用户名称
	 */
	@ApiModelProperty(value = "用户名称")
	private String userName;
	/**
	 * 开始时间
	 */
	@ApiModelProperty(value = "开始时间")
	private OffsetDateTime startTime;
	/**
	 * 结束时间
	 */
	@ApiModelProperty(value = "结束时间")
	private OffsetDateTime endTime;

	public OffsetDateTime getStartTime() {
		return startTime;
	}

	public void setStartTime(OffsetDateTime startTime) {
		this.startTime = startTime;
	}

	public OffsetDateTime getEndTime() {
		return endTime;
	}

	public void setEndTime(OffsetDateTime endTime) {
		this.endTime = endTime;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Log() {

	}

	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public OffsetDateTime getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(OffsetDateTime createtime) {
		this.createtime = createtime;
	}

}
